# 新大小杜
# 在读研究生
# 开发时间，2021/4/12 11:37
class Person(object): #Person继承object类
    def __init__(self,name,age):
        self.name=name
        self.age=age
    def info(self):
        print(self.name,self.age)

class Student(Person):
    def __init__(self,name,age,stu_no):
        super().__init__(name,age)
        self.stu_no=stu_no

class Teacher(Person):
    def __init__(self,name,age,teacherfyear):
        super().__init__(name,age)
        self.teacherfyear=teacherfyear


stu=Student('张三',20,'10010')
teacher=Teacher('李四',35,10)

stu.info()
teacher.info()